{{include file="default/Public/header.html"}}
<div id="pageTop">
  <div class="tabs">
    <ul>
      <li><a href='#'  class="selected" rel="tabsContent1" ><span>系统检测信息</span></a></li>
      <li><a href='#'  rel="tabsContent2" ><span>PHP.INI 检测信息</span></a></li>
      <li><a href='#'  rel="tabsContent3" ><span>MySQL 检测信息：</span></a></li>
    </ul>
  </div>
</div>
<div id="info">
  <div class="tabcontent" id="tabsContent1">
    <table cellpadding="0" cellspacing="0">
      <tr>
        <td>请确保“data/”文件夹以及子文件夹和文件可写</td>
      </tr>
    </table>
    <table cellpadding="0" cellspacing="0" class="table_list">
      <thead>
        <tr>
          <th width="15%">检测项目</th>
          <th class="align_l">当前配置</th>
        <tr>
      </thead>
      <tbody>
        <tr>
          <td>服务器操作系统</td>
          <td>{{$sys_info.os}}</td>
        </tr>
        <tr>
          <td>Web 服务器</td>
          <td>{{$sys_info.web_server}}</td>
        </tr>
        <tr>
          <td>Mysql</td>
          <td>{{$sys_info.mysqlv}}
            {{if $sys_info.mysqlv<5}}
            您的数据库版本低于 5.0，不支持事务操作，将无法使用本系统
            {{/if}} </td>
        </tr>
        <tr>
          <td>程序版本</td>
          <td>Fangfa CMS {{$sys_info.version}}</td>
        </tr>
        <tr>
          <td>网站根目录</td>
          <td>相对路径：{{$sys_info.web_root_relative}}<br />绝对路径：{{$sys_info.web_root}}</td>
        </tr>
      </tbody>
    </table>
  </div>
  <div class="tabcontent" id="tabsContent2" style="display:none">
    <table cellpadding="0" cellspacing="0" >
      <thead>
        <tr>
          <th width="100">检测项目</th>
          <th width="15%">当前配置</th>
          <th width="15%">建议配置</th>
          <th width="6%">结果</th>
          <th>说　　明</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>PHP版本</td>
          <td>{{$sys_info.phpv}}</td>
          <td><font color="red">5.0以上</font></td>
          <td> {{if $sys_info.phpv<'5.0'}} <span style="color:red">×</span> {{else}} <span style="color:green">√</span> {{/if}} </td>
          <td>PHP 版本不得低于 5.0，否则无法使用本系统</td>
        </tr>
        <tr>
          <td>Gzip 支持</td>
          <td> {{if $sys_info.gzip}}
            是
            {{else}}
            否
            {{/if}} </td>
          <td>开启GZIP支持</td>
          <td> {{if $sys_info.gzip}} <span style="color:green">√</span> {{else}} <span style="color:red">×</span> {{/if}} </td>
          <td>GZIP（GNU-ZIP）是一种压缩技术。经过GZIP压缩后页面大小可以变为原来的30%甚至更小。</td>
        </tr>
        <tr>
          <td>安全模式</td>
          <td> {{if $sys_info.safe_mode}}
            是
            {{else}}
            否
            {{/if}} </td>
          <td>建议不要开启</td>
          <td> {{if $sys_info.safe_mode}} <span style="color:red">×</span> {{else}} <span style="color:green">√</span> {{/if}} </td>
          <td>修改 php.ini（safe_mode = Off）</td>
        </tr>
        <tr>
          <td>安全模式GID</td>
          <td> {{if $sys_info.safe_mode_gid}}
            是
            {{else}}
            否
            {{/if}} </td>
          <td>建议不要开启</td>
          <td> {{if $sys_info.safe_mode_gid}} <span style="color:red">×</span> {{else}} <span style="color:green">√</span> {{/if}} </td>
          <td>修改 php.ini（safe_mode_gid = Off）</td>
        </tr>
        <tr>
          <td>Socket 支持</td>
          <td> {{if $sys_info.socket}}
            是
            {{else}}
            否
            {{/if}} </td>
          <td>可选</td>
          <td>{{if $sys_info.socket}} <span style="color:green">√</span> {{else}} <span style="color:red">×</span> {{/if}}</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>短标签</td>
          <td> {{if $sys_info.short_open_tag}}
            是
            {{else}}
            否
            {{/if}} </td>
          <td>必须开启</td>
          <td> {{if $sys_info.short_open_tag}} <span style="color:green">√</span> {{else}} <span style="color:red">×</span> {{/if}}</td>
          <td>修改 php.ini（short_open_tag = ON）</td>
        </tr>
        <tr>
          <td>远程打开</td>
          <td> {{if $sys_info.php_fopenurl}}
            是
            {{else}}
            否
            {{/if}} </td>
          <td>建议支持</td>
          <td>{{if $sys_info.php_fopenurl}} <span style="color:green">√</span> {{else}} <span style="color:red">×</span> {{/if}}</td>
          <td>如果不支持，系统就无法抓取远程文件。</td>
        </tr>
        <tr>
          <td>GD 版本</td>
          <td>{{$sys_info.gdv}}</td>
          <td>GD2</td>
          <td>{{if $sys_info.gdv}} <span style="color:green">√</span> {{else}} <span style="color:red">×</span> {{/if}}</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>mb_string 支持</td>
          <td> {{if $sys_info.mb_string}}
            是
            {{else}}
            否
            {{/if}} </td>
          <td>&nbsp;</td>
          <td>{{if $sys_info.mb_string}} <span style="color:green">√</span> {{else}} <span style="color:red">×</span> {{/if}}</td>
          <td>必须开启该扩展</td>
        </tr>
        <tr>
          <td>Zlib 支持</td>
          <td> {{if $sys_info.zlib}}
            是
            {{else}}
            否
            {{/if}} </td>
          <td>&nbsp;</td>
          <td>{{if $sys_info.zlib}} <span style="color:green">√</span> {{else}} <span style="color:red">×</span> {{/if}}</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>上传最大文件</td>
          <td>{{$sys_info.fileupload}}</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>时区设置</td>
          <td>{{$sys_info.timezone}}</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </tbody>
    </table>
  </div>
  <div class="tabcontent" id="tabsContent3" style="display:none">
    <table cellpadding="0" cellspacing="0">
      <thead>
        <tr>
          <th width="100">检测项目</th>
          <th width="15%">当前配置</th>
          <th width="15%">建议配置</th>
          <th width="6%">结果</th>
          <th>说　　明</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>数据库版本</td>
          <td>{{$sys_info.mysqlv}}</td>
          <td><font color="red">5.0以上</font></td>
          <td> {{if $sys_info.mysqlv<'5.0'}} <span style="color:red">×</span> {{else}} <span style="color:green">√</span> {{/if}} </td>
          <td>Mysql 版本不得低于 5.0 </td>
        </tr>
        <tr style="display:none">
          <td>全文索引最小长度</td>
          <td>{{$sys_info.ft_min_word_len}}</td>
          <td><font color="red">1</font></td>
          <td> {{if $sys_info.ft_min_word_len|intval <= '2' }} <span style="color:green">√</span> {{else}} <span style="color:red">×</span> {{/if}} </td>
          <td>请修改
            {{if $smarty.const.PHP_OS|substr:0:3  == 'WIN'}}
            my.ini
            {{else}}
            my.cnf
            {{/if}}
            ，在 [mysqld] 后面加入一行“ft_min_word_len=1”，<br />
            然后重启Mysql，重建全文索引，否则将无法使用全站搜索功能 </td>
        </tr>
      </tbody>
    </table>
  </div>
</div>
{{include file="default/Public/footer.html"}}
